<template>
  <div class="user">
    <div class="top">
      <div class="left" @click="login()">
        <img :src="headerArr.headurl" alt="" />
        <span>{{ headerArr.username }}</span>
        <i class="iconfont icon-youhuaxiangyougengduo"></i>
      </div>
      <div class="right">
        <i class="iconfont icon-saoma1"></i>
      </div>
    </div>
    <div class="bottom">
      <div class="bottom-top">
        <div class="left">
          <h2>续费黑胶VIP</h2>
          <span>立享超21项专属特权</span>
        </div>
        <div class="right">
          <p>会员中心</p>
        </div>
      </div>
      <div class="bottom-bottom">
        <span>专享特惠，黑胶首月仅1.93元!</span>
        <p>限时<br />福利</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["headerArr"],
  methods: {
    login() {
      this.$router.push("/loginview");
    },
  },
};
</script>
<style lang="less" scoped>
.user {
  width: 100%;
  margin-bottom: 0.3rem;
  .top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.42rem;
    .left {
      line-height: 0.55rem;
      display: flex;
      img {
        width: 0.55rem;
        height: 0.55rem;
        margin-right: 0.2rem;
        vertical-align: middle;
        border-radius: 50%;
      }
      span {
        vertical-align: middle;
        font-size: 0.26rem;
        margin-right: 0.12rem;
      }
      i {
        font-size: 0.23rem;
      }
    }
    .right {
      i {
        font-size: 0.4rem;
        line-height: 0.55rem;
      }
    }
  }
  .bottom {
    width: 100%;
    height: 2.15rem;
    border-radius: 0.28rem;
    background-color: #8c8a8f;
    padding: 0.25rem 0.3rem;
    color: #fff;
    span {
      font-size: 0.18rem;
      color: #cdcdcb;
    }
    .bottom-top {
      width: 100%;
      display: flex;
      justify-content: space-between;
      .left {
        padding-bottom: 0.28rem;
        border-bottom: 0.01rem solid #cdcdcb;
        h2 {
          font-size: 0.32rem;
          font-weight: 700;
          margin-bottom: 0.18rem;
        }
      }

      .right {
        p {
          width: 1.22rem;
          height: 0.55rem;
          border-radius: 0.2rem;
          border: 0.02rem solid #cdcdcb;
          padding: 0.1rem 0.15rem;
          font-size: 0.22rem;
        }
      }
    }
    .bottom-bottom {
      width: 100%;
      display: flex;
      justify-content: space-between;
      span {
        margin-top: 0.2rem;
      }
      p {
        width: 0.4rem;
        height: 0.4rem;
        font-size: 0.13rem;
        font-style: oblique;
        font-weight: 700;
        padding-top: 0.01rem;
        padding-left: 0.05rem;
        border-radius: 0.05rem;
        background-image: linear-gradient(to bottom, #3289fc, #8cd3f5);
      }
    }
  }
}
</style>